<!--


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

<div id="dsOverviewContainer" ng-show="deliveryService">
    <div class="ds-header">
        <ol class="breadcrumb">
            <li class="active"><span class="ds-name" title="{{deliveryService.displayName}} ({{deliveryService.id}} | {{deliveryService.xmlId}})">{{deliveryService.displayName}}</span> <a class="link" title="View Delivery Service Config" ng-click="viewConfig(deliveryService)"><i class="fa fa-cog fa-fw"></i></a></li>
        </ol>
        <div ng-if="properties.deliveryService.invalidateContent.show && user.localUser" class="invalidate-content-btn btn-group" uib-dropdown is-open="invalidate.isopen">
            <button id="invalidate-button" type="button" class="action-btn-dropdown btn" uib-dropdown-toggle>
                Invalidate Content <i class="fa fa-angle-down fa-lg"></i>
            </button>
            <ul class="action-btn-dialog uib-dropdown-menu scrollable-purge-container scrollable dropdown-menu-right" role="menu" aria-labelledby="invalidate-button">
                <li>
                    <div class="panel-body">
                        <div ui-view="purgeContent"></div>
                    </div>
                </li>
            </ul>
        </div>
        <div class="more-charts-btn btn-group" uib-dropdown is-open="moreCharts.isopen">
            <button id="moreCharts-button" type="button" class="action-btn-dropdown btn" uib-dropdown-toggle>
                Delivery Service Charts <i class="fa fa-angle-down fa-lg"></i>
            </button>
            <ul class="action-btn-menu uib-dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="moreCharts-button">
                <li ng-if="properties.charts.bandwidthPerSecond.show"><a ng-click="navigateToChart(deliveryService.id, 'bandwidth-per-second')">{{properties.charts.bandwidthPerSecond.name}}</a></li>
                <li ng-if="properties.charts.transactionsPerSecond.show"><a ng-click="navigateToChart(deliveryService.id, 'transactions-per-second')">{{properties.charts.transactionsPerSecond.name}}</a></li>
                <li ng-if="properties.charts.httpStatus.show"><a ng-click="navigateToChart(deliveryService.id, 'http-status-by-class')">{{properties.charts.httpStatus.name}}</a></li>
            </ul>
        </div>
    </div>
    <div class="alert alert-danger" role="alert" ng-show="failover.configured && failover.enabled">Failover Status: ON <span ng-show="failover.destination.location"> - destination: {{failover.destination.location}} ({{failover.destination.type}})</span></div>
    <div ng-if="properties.charts.bandwidthPerSecond.show">
        <div ui-view="chartDatesContent"></div>
        <div ui-view="bandwidthContent" class="bandwidth-content"></div>
    </div>
    <hr>
    <div class="capacity-and-routing row" ng-show="deliveryService.active">
        <div class="col-sm-6 col-md-6" ui-view="capacityContent"></div>
        <div class="col-sm-6 col-md-6" ui-view="routingContent"></div>
    </div>
    <hr>
    <div ng-show="deliveryService.active" ui-view="cacheGroupsContent" class="ds-cachegroups"></div>
</div>
